package cn.edu.hit.kg;

import jdk.nashorn.api.scripting.JSObject;

@FunctionalInterface
public interface IMethod {
    Object call(IScriptContext scriptContext, Object... args);
    default String name(){
        return this.getClass().getSimpleName();
    }
    default String version(){
        return "1.0.0.0";
    }
    default JSObject asJSObject(){
        return new FakeJSObject(this);
    }
}
